<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/maincontent.css" type="text/css" rel="stylesheet">
<link href="css/itoolbar.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<%=path%>/jsplug/dtree/dtree.css" type="text/css"></link>
<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>

<script type="text/javascript" src="<%=path%>/jsplug/dtree/dtree.js"></script>


<script type="text/javascript">

　var　tree = new dTree('tree');//创建一个对象

$.ajax({

　　type:'post', //数据发送方式

　　dataType:'xml', //接受数据格式
  
	url: '<%=path%>/handler_xmlTree.action',

　　error:function(json){

　　		alert( "not lived!");

　　},

　　async: false ,//同步方式

　　success: function(xml){
	alert("--"+xml);
　　$(xml).find("node").each(function(){

　　var nodeId=$(this).attr("nodeId");

　　var parentId=$(this).attr("parentId");

　　var hrefAddress=$(this).attr("hrefAddress");

　　var nodeName=$(this).text();

　　tree.add(nodeId,parentId,nodeName,hrefAddress,"","","","",false);

　　});

　　}

　　});

　　document.write(tree);

　　</script>

</head>

<body>

</body>

</html>

